package com.example.rightmost.dao;

import com.example.rightmost.entity.TopicCategory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
@Mapper
public interface CategoryMapper {

    List<TopicCategory> getCategoryList(TopicCategory category);

    int deleteCategory(Integer id);

    int updateStatus(Integer id);

    int addCategory(String name, LocalDateTime createTime);

    TopicCategory selectCategory(String name);

    int updateCategory(TopicCategory category);

    //gao
    List<TopicCategory> getTabs();

}
